package com.thinkinghead.mahjongrecorder.model;

import android.graphics.Bitmap;

public class User {

	private String objectID = "";
	private String name = "";
	private String password = "";
	private String status = "";
	private String imageUrl = "";
	
	public User(){
		
	}
	
	public String getStatus() {
		return status;
	}

	public void setStatus(String status) {
		this.status = status;
	}

	public String getImageUrl() {
		return imageUrl;
	}

	public void setImageUrl(String imageUrl) {
		this.imageUrl = imageUrl;
	}

	private Bitmap image = null;

	public String getObjectID() {
		return objectID;
	}

	public void setObjectID(String objectID) {
		this.objectID = objectID;
	}

	public String getName() {
		return name;
	}
	
	public String getShortName() {
		if(name.length()>3){
			return name.substring(0, 3);			
		}else{
			return name;
		}
		
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getPassword() {
		return password;
	}

	public void setPassword(String password) {
		this.password = password;
	}

	public Bitmap getImage() {
		return image;
	}

	public void setImage(Bitmap image) {
		this.image = image;
	}
}
